package cn.webrx.coll;/*
 * Copyright (c) 2006, 2022, webrx.cn All rights reserved.
 *
 */

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * <p>Project: jse2204 - cn.webrx.coll.User
 * <p>Powered by webrx On 2022-09-19 09:53:00
 *
 * @author webrx [webrx@126.com]
 * @version 1.0
 * @since 17
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class User implements Comparable<User> {
    private int id;
    private String name;
    private int score;

    @Override
    public int compareTo(User o) {
        return id - o.id;
    }
}
